package cn.wxq.daily.empdailymgforserve.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 行政管理
 */
public class Administrative {
    /**
     * ID
     */
    private Integer adtrtId;

    private Integer userId;

    /**
     * 行政类型（1：物品领用，2：用车申请，3：永章申请）
     */
    private String adtrtType;
    /**
     * 名称
     */
    private String adtrtName;
    /**
     * 理由
     */
    private String adtrtReson;
    /**
     * 数量
     */
    private String adtrtCount;
    /**
     * 车牌号（
     */
    private String carNumber;
    /**
     * 用车地址
     */
    private String carAddress;
    /**
     * 用章类型（1：公章，2：合同章，3：其他）
     */
    private String ZhangType;

    /**
     * 审核状态（1：通过，2：未审核)
     */
    private String status;
    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    /**
     * 开始时间）
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * 结束时间）
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


    /**
     * 用户对象
     */
    private List<User> users;
    /**
     * 审核表对象
     */
    private AdministrativeAudit administrativeAudit;

    public Integer getAdtrtId() {
        return adtrtId;
    }

    public void setAdtrtId(Integer adtrtId) {
        this.adtrtId = adtrtId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAdtrtType() {
        return adtrtType;
    }

    public void setAdtrtType(String adtrtType) {
        this.adtrtType = adtrtType;
    }

    public String getAdtrtName() {
        return adtrtName;
    }

    public void setAdtrtName(String adtrtName) {
        this.adtrtName = adtrtName;
    }

    public String getAdtrtReson() {
        return adtrtReson;
    }

    public void setAdtrtReson(String adtrtReson) {
        this.adtrtReson = adtrtReson;
    }

    public String getAdtrtCount() {
        return adtrtCount;
    }

    public void setAdtrtCount(String adtrtCount) {
        this.adtrtCount = adtrtCount;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarAddress() {
        return carAddress;
    }

    public void setCarAddress(String carAddress) {
        this.carAddress = carAddress;
    }

    public String getZhangType() {
        return ZhangType;
    }

    public void setZhangType(String zhangType) {
        ZhangType = zhangType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public AdministrativeAudit getAdministrativeAudit() {
        return administrativeAudit;
    }

    public void setAdministrativeAudit(AdministrativeAudit administrativeAudit) {
        this.administrativeAudit = administrativeAudit;
    }

    @Override
    public String toString() {
        return "Administrative{" +
                "adtrtId=" + adtrtId +
                ", userId=" + userId +
                ", adtrtType='" + adtrtType + '\'' +
                ", adtrtName='" + adtrtName + '\'' +
                ", adtrtReson='" + adtrtReson + '\'' +
                ", adtrtCount='" + adtrtCount + '\'' +
                ", carNumber='" + carNumber + '\'' +
                ", carAddress='" + carAddress + '\'' +
                ", ZhangType='" + ZhangType + '\'' +
                ", status='" + status + '\'' +
                ", addTime=" + addTime +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", users=" + users +
                ", administrativeAudit=" + administrativeAudit +
                '}';
    }
}
